<?php


class TbfCookie {
    //不加密的cookie
    static function getStr($key){
        if (empty($_COOKIE[$key])){
            return '';
        }
        $value = $_COOKIE[$key];
        if (!is_string($value)){
            return '';
        }
        return $value;
    }
    //不加密的cookie
    static function set($key,$value){
        setcookie($key,$value);
    }
} 